package com.houtai.service.article;


import com.houtai.base.RetInfo;
import com.houtai.bean.TsJzArticleInfo;
import com.houtai.bean.dto.article.CampusArticleListDto;

/**
 * Created by lizhun on 2017/7/19.
 */
public interface ArticleService {

    /**
     * @Purpose   分页查找文章
     * @param     dto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    RetInfo
     */
    RetInfo findCampusArticlePage(CampusArticleListDto dto);

    /**
     * @Purpose   添加文章
     * @param     tsJzArticleInfo
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    RetInfo
     */
    RetInfo insertArticle(TsJzArticleInfo tsJzArticleInfo);
    /**
     * @Purpose   更新文章
     * @param     tsJzArticleInfo
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    RetInfo
     */
    RetInfo updateArticle(TsJzArticleInfo tsJzArticleInfo);
    /**
     * @Purpose   更新文章状态
     * @param     tsJzArticleInfo
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    RetInfo
     */
    RetInfo updateArticleValid(TsJzArticleInfo tsJzArticleInfo);
    /**
     * @Purpose   根据id查找文章
     * @param     id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    TsJzArticleInfo
     */
    TsJzArticleInfo findArticleById(Integer id);
}
